package 标准代码;

import java.io.*;


/**
 * Created by 5406160@qq.com on LiBoWen 李博闻.
 *
 * @ClassName : 字符流一次一个字符复制文件
 * @Author : 54061
 * @Date: 2022/2/13 20:16
 */
/*
yuan
 */
public class 高效字节流一次一个字节复制文件 {
    public static void main(String[] args) throws IOException {

        BufferedInputStream bis = new BufferedInputStream(new FileInputStream(""));

        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(""));


        int by;

        while((by=bis.read())!=-1){
            bos.write(by);

        }
        bis.close();
        bos.close();
    }
}
